package org.example.bean;

public class GroupBean {
    private int GroupId;
    private String GroupName;
    private TeamBean team1;
    private TeamBean team2;

    public GroupBean() {
    }

    public GroupBean(String groupName, TeamBean team1, TeamBean team2) {
        GroupName = groupName;
        this.team1 = team1;
        this.team2 = team2;
    }

    public int getGroupId() {
        return GroupId;
    }

    public void setGroupId(int groupId) {
        GroupId = groupId;
    }

    public String getGroupName() {
        return GroupName;
    }

    public void setGroupName(String groupName) {
        GroupName = groupName;
    }

    public TeamBean getTeam1() {
        return team1;
    }

    public void setTeam1(TeamBean team1) {
        this.team1 = team1;
    }

    public TeamBean getTeam2() {
        return team2;
    }

    public void setTeam2(TeamBean team2) {
        this.team2 = team2;
    }

    @Override
    public String toString() {
        return "GroupBean{" +
                "GroupId=" + GroupId +
                ", GroupName='" + GroupName + '\'' +
                ", team1=" + team1 +
                ", team2=" + team2 +
                '}';
    }
}
